<include file="Public:header" />

<div id="page-body">
    <div id="qan-breadcrumbs"><span><a href="{$_global.site_url}">{$Think.lang.home}</a></span>&gt;&nbsp;<span>{$Think.lang.create_team}</span></div>
    <div class="container">
    <form method="POST" action="{:U('Team/apply')}">
        <table class="tb">
            <tr>
                <td align="right" valign="top"><label for="category">{$Think.lang.category}：</label></td>
                <td colspan="2">
	                <div id="team-category">
	                    <select id="first-level" onchange="getCategoryOptions(this,'second-level');">
	                        <option value="0">{$Think.lang.all_categories}</option>
	                        <volist name="_topCategories" id="vo">
	                        <option value="{$vo.category_id}">{$vo.name}</option>
	                        </volist>
	                    </select>
	                    <select id="second-level" style="display:none" onchange="getCategoryOptions(this,'third-level');"></select>
	                    <select id="third-level" style="display:none" onchange="getCategoryOptions(this,'third-level');"></select>
	                </div>
                </td>
            </tr>
            <tr>
                <td align="right"><label for="name">{$Think.lang.team_name}：</label></td>
                <td><input id="name" class="input" type="text" name="name" size="40" /></td>
                <td class="tips"><eq name="_global.allow_team_rename">{$Think.lang.team_rename_explain}<else/>{$Think.lang.team_rename_forbidden}</eq></td>
            </tr>
            <tr>
                <td align="right" valign="top"><label for="about">{$Think.lang.team_about}：</label></td>
                <td colspan="2"><textarea id="about" class="textarea" name="about" rows="5" cols="80"></textarea></td>
            </tr>
            <eq name="captcha" value="1">
            <tr>
                <td align="right"><label for="verify">{$Think.lang.captcha}：</label></td>
                <td><input id="verify" class="input" type="text" name="verify" size="40" /></td>
                <td><div class="captcha-container"><img class="captcha" src="{:U('Ajax/captcha')}" title="{$Think.lang.captcha_again}" onclick="reCaptcha(this);" /></div></td>
            </tr>
            </eq>
            <tr>
                <td></td>
                <td>
                	<input type="submit" class="button" value="{$Think.lang.submit}" />
                	<input type="reset" class="alt-button" value="{$Think.lang.reset}" />
                	<input id="category-id" type="hidden" name="category_id" value="0" />
                </td>
                <td></td>
            </tr>
        </table>
    </form>
    </div>
</div>

<include file="Public:footer" />